﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DotNet.WebUI.BasicControl
{
    public partial class ResponseObject : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnText_Click(object sender, EventArgs e)
        {
            Response.Write("写入普通文本");
        }

        protected void btnHtml_Click(object sender, EventArgs e)
        {
            Response.Write("<span style='color:#F00;'>这段是一段HTML文字</span>");
           //Response.Write("<span style='color:#4cff12; font-size:24px;'>名称</span><input id='txtLoginID' style='width:200px; height:24px; border:1px solid #00F;' type='text' />");
        }

        protected void btnJS_Click(object sender, EventArgs e)
        {
            //Response.Write("<script type='text/javascript'>alert('这是JS文件')</script>");
            Response.Write(string.Format("<script type='text/javascript'>alert('{0}')</script>", txtJS.Text));
        }
    }
}